<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
Route::any('one_admin', 'Auth\mondayController@admin');
Route::any('one_top', 'Auth\mondayController@top');
Route::any('one_left', 'Auth\mondayController@left');
//登陆
Route::any('one_login', 'Auth\LoginController@login');

Route::any('one_news_list', 'Auth\mondayController@news_list');
Route::any('one_news_add', 'Auth\mondayController@news_add');
Route::any('one_news_yes', 'Auth\mondayController@news_yes');
Route::any('news_del', 'Auth\mondayController@news_del');
Route::any('news_edit', 'Auth\mondayController@news_edit');
Route::any('one_news_yes', 'Auth\mondayController@news_yes');


Route::any('one_cate_list', 'Auth\mondayController@cate_list');
Route::any('one_cate_add', 'Auth\mondayController@cate_add');
Route::any('cate_del', 'Auth\mondayController@cate_del');
Route::any('cate_edit', 'Auth\mondayController@cate_edit');

Route::any('one_admin_list', 'Auth\mondayController@admin_list');
Route::any('one_admin_add', 'Auth\mondayController@admin_add');
Route::any('admin_del', 'Auth\mondayController@admin_del');
Route::any('admin_edit', 'Auth\mondayController@admin_edit');
//导出
Route::any('export', 'Auth\mondayController@export');
//导入
Route::any('import', 'Auth\mondayController@import');